package cn.wolfcode.luowowo.community.service.impl;

import cn.wolfcode.luowowo.community.domain.Question;
import cn.wolfcode.luowowo.community.domain.QuestionContent;
import cn.wolfcode.luowowo.community.mapper.QuestionContentMapper;
import cn.wolfcode.luowowo.community.service.IQuestionContentService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class QuestionContentImpl implements IQuestionContentService {

    @Autowired
    private QuestionContentMapper questionContentMapper;

    @Override
    public void save(QuestionContent questionContent) {
        questionContentMapper.insert(questionContent);
    }

    @Override
    public String getQuestionContentById(Long id) {

        return questionContentMapper.selectByid(id);
    }

}
